{template 'weheader'}
{if $reside}<script src="{MODULE_URL}template/weui/js/city-picker.min.js"></script>{/if}
{if $isloc}<script type="text/javascript" src="{TEMPLATE_WEUI}js/QQgetLocation.js"></script>{/if}
<link rel="stylesheet" href="{MODULE_URL}template/weui/style/post.css">
<style>

.weui_extra_area {z-index:0;}
.record .weui_cells:first-child {margin-top:30px;}
.record .weui_cells {margin:0;}
.record img{width:1.2rem;height:1.2rem;}
.m-img {background-position: top center;padding-bottom: 0;}
.m-img img{width:100%;height:auto;}
.m-masker {background-color: rgba(0, 0, 0, 0);position: relative;}
#allmap{width:100%;height:200px;display:block}
</style>
	{template 'insert/header'}

	{if $activity['isinfo']}
		{template 'insert/field_address'}
	{/if}
	
<form action="{php echo $this->createMobileUrl('dayu_form', array('weid' => $_W['uniacid'], 'id' => $reid))}" class="" enctype="multipart/form-data" method="POST" id="form">
<input type="hidden" name="repeat" value="<?php echo md5(sha1(time())); ?>">

	{if $activity['paixu']==0}
		{template 'insert/join'}
	{/if}
	
	{if !empty($par['kami']) && pdo_tableexists('dayu_kami')}
		{template 'insert/field_kami'}
	{/if}
	
	{if !empty($linkage)}
		{template 'insert/field_linkage'}
	{/if}
	
	<div class="weui_cells weui_cells_form">
	<div class="fields">
	
	{loop $ds $fields}
	
	{if $fields['type'] == 'text'}
		<div class="weui_cell">
			<div class="weui_cell_hd"><label class="weui_label">{$fields['title']}{if $fields['essential']}<span>*</span>{/if}</label></div>
			<div class="weui_cell_bd weui_cell_primary">
			{if $fields['title']=='完赛成绩'}
				<input class="weui_input" name="field_{$fields['refid']}_{$fields['bind']}" id="field_{$fields['refid']}" readonly type="text" value="{$fields['default']}" placeholder="{$fields['tixing']}" {if $fields['essential']}required tips="{$fields['tixing']}"{/if}>
				<script>
					  $("#field_{$fields['refid']}").picker({
						title: "时　 分　 秒",
						cols: [
						  {
							textAlign: 'center',
							values: ['00','01','02','03','04','05','06','07','08','09','10','11','12','13','14','15','16','17','18','19','20','21','22','23','24']
						  },
						  {
							textAlign: 'center',
							values: ['00','01','02','03','04','05','06','07','08','09','10','11','12','13','14','15','16','17','18','19','20','21','22','23','24','25','26','27','28','29','30','31','32','33','34','35','36','37','38','39','40','41','42','43','44','45','46','47','48','49','50','51','52','53','54','55','56','57','58','59']
						  },
						   {
							textAlign: 'center',
							values: ['00','01','02','03','04','05','06','07','08','09','10','11','12','13','14','15','16','17','18','19','20','21','22','23','24','25','26','27','28','29','30','31','32','33','34','35','36','37','38','39','40','41','42','43','44','45','46','47','48','49','50','51','52','53','54','55','56','57','58','59']
						  }
						]
					  });
				</script>
			{else}
				{if $fields['bind'] == 'birth'}
					<input class="weui_input" name="field_{$fields['refid']}_{$fields['bind']}" type="text" value="{$profile['birthyear']}-{$profile['birthmonth']}-{$profile['birthday']}" placeholder="{$fields['tixing']}" {if $fields['essential']}required tips="{$fields['tixing']}"{/if}>
				{else}
					<input class="weui_input" name="field_{$fields['refid']}_{$fields['bind']}" type="text" value="{$fields['default']}" placeholder="{$fields['tixing']}" {if $fields['only']}id="n_{$fields['refid']}" onblur="check(this,'{$fields['refid']}')" data="{$fields['title']}"{/if} {if $fields['essential']}required tips="{$fields['tixing']}"{/if}>
				{/if}
				</div>
				{if $fields['loc']}
				<div class="weui_cell_ft">
					<a href="javascript:void(0);" onclick="getLocation(this,'field_{$fields['refid']}_{$fields['bind']}');" class="f18">
						<svg class="icon" aria-hidden="true">
							<use xlink:href="#icon-Geo-fence"></use>
						</svg>
					</a>
				</div>
				{else}
				<div class="weui_cell_ft"></div>
				{/if}
			{/if}
			</div>
		</div>
	{/if}
		
	{if $fields['type'] == 'email'}
		{template 'insert/field_email'}
	{/if}
				
	{if $fields['type'] == 'number'}
		{template 'insert/field_number'}
	{/if}
				
	{if $fields['type'] == 'textarea'}
		{template 'insert/field_textarea'}
	{/if}
				
	{if $fields['type'] == 'radio'}
		{template 'insert/field_radio'}
	{/if}
				
	{if $fields['type'] == 'checkbox'}
		{template 'insert/field_checkbox'}
	{/if}

	{if $fields['type'] == 'select'}
		{template 'insert/field_select'}
	{/if}

	{if $fields['type'] == 'image'}
		{template 'insert/field_image'}
	{/if}
	
	{if $fields['type'] == 'photograph'}
		{template 'insert/field_photograph'}
	{/if}
		
	{if $fields['type'] == 'calendar'}
		{template 'insert/field_calendar'}
	{/if}
		
	{if $fields['type'] == 'range'}
		{template 'insert/field_range'}
	{/if}
		
	{if $fields['type'] == 'reside'}
		{template 'insert/field_reside'}
	{/if}
	
	{/loop}
	</div>
	</div>
	
	{if $activity['plural']==1}
		{template 'insert/pics'}
	{/if}
	
	{if $activity['isvoice']==1}
		{template 'insert/voice'}
	{/if}
	
	{if $activity['paixu']==1}
		{template 'insert/join'}
	{/if}
	
    <div class="weui_btn_area row">
	{if !empty($activity['agreement'])}
		{template 'insert/field_agreement'}
	{/if}
		{template 'insert/field_var'}
		<input type="hidden" name="token" value="{$_W['token']}" />
        <button class="weui_btn weui_btn_primary" name="submit" type="submit" id="formSubmitBtn">{$submitname}</button>
    </div>
</form>
	{template 'insert/field_footer'}
	{if !empty($par['comment']) && pdo_tableexists('dayu_comment')}
	</div>
        <div class="weui_tab_bd_item">
            {template 'insert/comment'}
        </div>
	{/if}
</div>
	{template 'insert/popup'}

	{template 'insert/script'}
{template 'footers'}